﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Collections;

namespace Client
{
    public class UserData
    {
        private bool hasData;
        public bool HasData
        {
            get { return hasData; }
        }

        public string UserID { get; set; }
        public string Name { get; set; }
        public int Key { get; private set; }

        private List<ProjectInfo> ProjList = new List<ProjectInfo>();

        public UserData()
        {
            hasData = false;
        }

        public UserData(string userID, string name, int key, List<ProjectInfo> projList)
        {
            UserID = userID;
            Name = name;
            Key = key;
            
            ProjList = projList;
            hasData = true;
        }

        public void LogOut()
        {
            hasData = false;
        }
    }
}
